package structural.composite;

// 组合模式测试类
public class Client {

    public static void main(String[] args) {
        Menu firstCategory = new Menu("firstCategory", 1);

        Menu secondCategory = new Menu("secondCategory", 1);
        MenuItme secondItem = new MenuItme("secondItem", 2);
        MenuItme se1 = new MenuItme("secondItem2", 2);


        firstCategory.add(se1);
        firstCategory.add(secondCategory);
        firstCategory.add(secondItem);
        firstCategory.print();


    }


}
